/**
 * 作者: hxl
 * 日期: 2024-12-14 21:37:41
 * 备注: 七天乐配置表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class ActDayModel {
    protected int id; // id
    protected int groupId; // 期数
    protected int day; // 对应天数
    protected int taskGroupId; // 任务id (读取act_task表格中的task_group_id)
    protected String shopId; // 礼包id (读取shop表格中的id)
    protected String reward; // 进度奖励
    protected String integral; // 进度积分 (进度积分)

    public ActDayModel() {
    }

    public ActDayModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        groupId = obj.containsKey("group_id") ? obj.getInteger("group_id") : 0;
        day = obj.containsKey("day") ? obj.getInteger("day") : 0;
        taskGroupId = obj.containsKey("task_group_id") ? obj.getInteger("task_group_id") : 0;
        shopId = obj.containsKey("shop_id") ? obj.getString("shop_id") : "";
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        integral = obj.containsKey("integral") ? obj.getString("integral") : "";
    }

    public int getId() {
        return id;
    }

    public int getGroupId() {
        return groupId;
    }

    public int getDay() {
        return day;
    }

    public int getTaskGroupId() {
        return taskGroupId;
    }

    public String getShopId() {
        return shopId;
    }

    public String getReward() {
        return reward;
    }

    public String getIntegral() {
        return integral;
    }

}
